package java_demos.java_basic.regex_test;

import java.util.regex.Pattern;

public class RegexTest {
    public static void main(String[] args) {
        /*
        * 正则表达式中有三个最重要的类，为pattern,matcher,PatternSyntaxException,
        *
        * */

        String content = "I am  noob from runoob.com";
        String pattern = ".*runoob.*";
        boolean isMath = Pattern.matches(pattern,content);
        System.out.println("字符串中是否包含了\'runooob\'字符串？"+isMath);
    }
}
